<template>
  <div class="fade">
    <transition>
      <slot></slot>
    </transition>
  </div>
</template>

<script>
export default {
  name: 'fade'
}
</script>

<style lang="stylus" scoped>
  .v-enter, .v-leave-to
    transform translateY(-100%)
  .v-enter-to, .v-leave
    transform translateY(0)
  .v-enter-active, .v-leave-active
    transition transform .4s
</style>
